<div id="sidebar" class="content">

	<div id="sidebar_Recherche">
		<form method="post" action="" id="sidebarForm" name="sidebarForm">
				<p style="text-align:center;font-weight:bold;">RECHERCHE</p><br />
				<input type="text" id="inputRecherche" /><br/><br />
				
				<hr/><br/> 
				
				<label for="categorieSearch">Cat&eacute;gorie : </label> 
				<select id="categorieSearch" name="categorieSearch">
					<option value="-1" disabled="disabled">Cat&eacute;gorie</option>
					<?php 
					foreach($_TPL['Categories'] as $i => $laCategorie){ ?>
						<option value="<?php echo $i; ?>"><?php  echo $laCategorie["label"]; ?></option>
					<?php }	?>
				</select>
				
				<br /><br />
				<label for="departementSearch">D&eacute;partement : </label> 
				<input type="text" name="departementSearch" id="departementSearch" />
				<input type="hidden" name="departementSearchId" id="departementSearchId"/>

				<br />
				<label for="troceurSearch">Troceur : </label> 
				<input type="text" name="troceurSearch" id="troceurSearch" />
				<input type="hidden" name="troceurSearchId" id="troceurSearchId"/>
					
				
				<br />
				<label for="stateObjectSidebar">Etat de l'objet</label>
				<select id="stateObjectSidebar" name="stateObjectSidebar">
							<option value="-1" disabled="disabled">Etat</option>
							<option value="Tr&egrave;s bon &eacute;tat">Tr&egrave;s bon &eacute;tat</option>
						    <option value="Bon &eacute;tat">Bon &eacute;tat</option>
						    <option value="Mauvais &eacute;tat">Mauvais &eacute;tat</option>
						    <option value="Tr&egrave;s Mauvais &eacute;tat">Tr&egrave;s Mauvais &eacute;tat</option>
				</select>
				<br /><br />
				<input type="submit" value="Rechercher" title="Rechercher" /> 
		</form>
			
	</div>
	
	
	
	
	<?php 
	$mySession = Session::getInstance();
	if($mySession->getAdmin()) { ?>
		<div id="sidebar_Admin" >
			<p style="text-align:center;font-weight:bold;">ADMINISTRATION</p><br />
			<ul>
				<li>
					<a href="index.php?mod=utilisateur">Gestion des utilisateur</a>
				</li>
							
				<li>
					<a href="index.php?mod=categorie">Gestion des cat&eacute;gorie</a>
				</li>
				
				<li>
					<a href="index.php?mod=tickets">Tickets</a>
				</li>
			</ul>
		</div>
	<?php }?>
	
</div><!-- /#sidebar -->